package wyj;

import java.util.Scanner;

class Main10 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int i, j, z, b;
        i = in.nextInt();
        z = i;
        b = 0;
        int[] a = new int[5];
        if (i >= -10000 & i <= 10000) {
            for (j = 0; j < a.length; j++) {
                if (i == 0) {
                    break;
                }
                a[j] = i % 10;
                i = i / 10;
                if (a[j] < 0) {
                    a[j] = -a[j];
                }
                b++;
            }
            if (z > 0) {
                for (j = b; j > 0; j--) {
                    if (j!=b){
                        System.out.print(" ");
                    }
                    switch (a[j - 1]) {
                        case 0:
                            System.out.print("ling");
                            break;
                        case 1:
                            System.out.print("yi");
                            break;
                        case 2:
                            System.out.print("er");
                            break;
                        case 3:
                            System.out.print("san");
                            break;
                        case 4:
                            System.out.print("si");
                            break;
                        case 5:
                            System.out.print("wu");
                            break;
                        case 6:
                            System.out.print("liu");
                            break;
                        case 7:
                            System.out.print("qi");
                            break;
                        case 8:
                            System.out.print("ba");
                            break;
                        case 9:
                            System.out.print("jiu");
                            break;
                    }
                }
            }
            else if (z<0){
                System.out.print("fu");
                for (j = b; j > 0; j--) {
                    switch (a[j - 1]) {
                        case 0:
                            System.out.print(" ling");
                            break;
                        case 1:
                            System.out.print(" yi");
                            break;
                        case 2:
                            System.out.print(" er");
                            break;
                        case 3:
                            System.out.print(" san");
                            break;
                        case 4:
                            System.out.print(" si");
                            break;
                        case 5:
                            System.out.print(" wu");
                            break;
                        case 6:
                            System.out.print(" liu");
                            break;
                        case 7:
                            System.out.print(" qi");
                            break;
                        case 8:
                            System.out.print(" ba");
                            break;
                        case 9:
                            System.out.print(" jiu");
                            break;
                    }
                }
            }
            if (z==0){
                System.out.print("ling");
            }
        }
    }
}
